package com.fengze.business.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fengze.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 完成付款请求参数对象
 */
public class PaymentFinishReqParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 项目成员名称 */
    private Long id;

    /** 付款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentDate;

    /** 付款说明 */
    @Excel(name = "付款说明")
    private String paymentDes;

    private MultipartFile [] files;

    public MultipartFile[] getFiles() {
        return files;
    }

    public void setFiles(MultipartFile[] files) {
        this.files = files;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPaymentDate(Date paymentDate)
    {
        this.paymentDate = paymentDate;
    }
    public Date getPaymentDate()
    {
        return paymentDate;
    }

    public void setPaymentDes(String paymentDes)
    {
        this.paymentDes = paymentDes;
    }
    public String getPaymentDes()
    {
        return paymentDes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("paymentDate", getPaymentDate())
                .append("paymentDes", getPaymentDes())
                .toString();
    }
}
